package com.parking.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *  物业流水表
 * </p>
 *
 * @author 吴彦祖
 * @since 2023年11月28日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("centified_money")
public class CentifiedMoney implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 物业流水Id
     */
    @TableId(value = "certified_money_id", type = IdType.AUTO)
    private Integer certifiedMoneyId;

    /**
     * 物业信息Id
     */
    @TableField("certified_info_id")
    private Integer certifiedInfoId;

    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;

    /**
     * 流水金额
     */
    @TableField("money_num")
    private BigDecimal moneyNum;

    /**
     * 流水类型 0普通订单 1取消订单 2超时订单
     */
    @TableField("money_type")
    private Integer moneyType;

    /**
     * 订单Id
     */
    @TableField("order_info_id")
    private Integer orderInfoId;

    /**
     * 订单编号
     */
    @TableField("order_info_num")
    private String orderInfoNum;

    /**
     * 无参构造函数
     * */
    public CentifiedMoney() {
    }

    /**
     * 构造函数
     * 参数 certifiedInfoId 物业信息Id
     *     addTime 添加时间
     *     moneyType 流水类型 0普通订单 1退款订单 2超时订单
     *     orderInfoId 订单Id
     *     orderInfoNum 订单编号
     * */
    public CentifiedMoney(Integer certifiedInfoId, LocalDateTime addTime, Integer moneyType, Integer orderInfoId, String orderInfoNum) {
        this.certifiedInfoId = certifiedInfoId;
        this.addTime = addTime;
        this.moneyType = moneyType;
        this.orderInfoId = orderInfoId;
        this.orderInfoNum = orderInfoNum;
    }


}
